package com.wzcl.app.model.dto;

import com.wzcl.app.service.common.model.body.ChannelAuthSettingBody;
import com.wzcl.app.service.common.model.body.ChannelBasicSettingBody;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class LiveRoomDto extends BaseDto {

    @NotBlank(message = "直播间名字不能为空")
    @ApiModelProperty(value = "直播间名字")
    private String name;

    @ApiModelProperty(value = "房间号")
    private String nub;

    @NotNull(message = "课程Id不能为空")
    @ApiModelProperty(value = "课程号")
    private Integer courseId;

    @NotNull(message = "开播时间不能为空")
    @ApiModelProperty(value = "开播时间")
    private Date startTime;

    @NotNull(message = "关闭时间不能为空")
    @ApiModelProperty(value = "关闭时间")
    private Date endTime;

    @NotBlank(message = "老师电话不能为空")
    @ApiModelProperty(value = "老师电话")
    private String teacherPhone;

    @ApiModelProperty(value = "用户手机")
    private String userPhone;

    @ApiModelProperty(value = "直播间状态")
    private Integer roomState;

    @NotNull(message = "设置不能为空")
    @ApiModelProperty(value = "基础设置")
    private ChannelBasicSettingBody basicSetting;

    @NotNull(message = "观看设置不能为空")
    @ApiModelProperty(value = "观看设置")
    private ChannelAuthSettingBody authSetting;
}
